home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / rocketcar2.swf / scripts / frame_14 / PlaceObject2_448_360 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-24  |  648 b   |  33 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.paused)
  3.    {
  4.       return undefined;
  5.    }
  6.    _X = _root.fake._x;
  7.    _Y = _root.fake._y - 5;
  8.    if(_root.car.jet)
  9.    {
  10.       if(_root.fuel > 0)
  11.       {
  12.          if(Key.isDown(38))
  13.          {
  14.             _visible = true;
  15.             if(!sound)
  16.             {
  17.                if(_root.sound)
  18.                {
  19.                   _root.steam.start(0,99999);
  20.                   sound = true;
  21.                }
  22.             }
  23.          }
  24.       }
  25.    }
  26.    if(!Key.isDown(38) or _root.fuel < 0 or !_root.car.jet)
  27.    {
  28.       _visible = false;
  29.       _root.steam.stop();
  30.       sound = false;
  31.    }
  32. }
  33.